import Vue from "vue";
import Vuex from "vuex";
import state from "./states.js"
import * as getters from "./getters.js"
import mutations from "./mutations.js"
import createLogger from 'vuex/dist/logger'
Vue.use(Vuex)
let debug = process.env.NODE_ENV !== 'production';
export default new Vuex.Store({
	state,
	getters,
	mutations,
	strict: debug,
	plugins: debug ? [createLogger()] : []
})